﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using PTCapture.Support;

namespace PTCapture.Forms
{
    public partial class MainForm
    {
        #region DelegateCallbacks

        /// <summary>
        /// Fired when the user selects a patient from the list.
        /// </summary>
        /// <param name="videoPath"></param>
        /// <param name="imagePath"></param>
        /// <returns></returns>
        bool patients1_AssignPaths(string videoPath, string imagePath, string drawingPath)
        {
            GlobalVariables.VideoPath = videoPath;
            GlobalVariables.ImagePath = imagePath;
            GlobalVariables.DrawingPath = drawingPath;

            cameraRecorderControl1.SetVariables();
            cameraRecorderControl2.SetVariables();

            // Assign images 
            PopulateImages();

            // Assign video drop downs for playback
            AssignVideoDropdowns();

            return true;
        }

        #endregion
    }
}
